package com.study.mike.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.study.mike.common.enums.EnumGender;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author KangHui
 * @Date 2022/11/4 15:54
 */
@Data
@TableName("kind_cat")
public class KindCatDO implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 名字
     */
    @TableField("cat_name")
    private String catName;

    /**
     * 昵称
     */
    @TableField("nick_name")
    private String nickName;

    /**
     * 性别
     */
    @TableField("gender")
    private EnumGender gender;

    /**
     * 品种
     */
    @TableField("breed")
    private String breed;

    /**
     * 年龄
     */
    @TableField("age")
    private Integer age;

    /**
     * 体重
     */
    @TableField("weight")
    private Double weight;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    /**
     * 逻辑存在标识
     */
    @TableField("delete_flag")
    @TableLogic
    private Long deleteFlag;

    /**
     * 状态 0正常 1禁用
     */
    @TableField("status")
    private Integer status;
}
